package com.wangx1n.boobey.entity.pk;

import com.google.gson.annotations.SerializedName;

/**
 * @author wangxin
 * @create 2020-06-14 16:35
 */
public class Player {
    /**
     * 用户openid
     */
    private String openid;

    /**
     * 用户微信名
     */
    @SerializedName("nickName")
    private String nickname;

    /**
     * 用户性别
     */
    private Integer gender;

    /**
     * 用户语言
     */
    private String language;

    /**
     * 用户所在城市
     */
    private String city;

    /**
     * 用户所在省份
     */
    private String province;

    /**
     * 用户所在国家
     */
    private String country;

    /**
     * 用户头像链接
     */
    private String avatarUrl;

    /**
     * 用户得分
     */
    private Integer score;
    /**
     * 选择的题库
     */
    private Integer dictionary;

    /**
     * 是否处于对战状态
     * @return
     */
    private  boolean isPk;

    @Override
    public String toString() {
        return "Player{" +
                "openid='" + openid + '\'' +
                ", nickname='" + nickname + '\'' +
                ", gender=" + gender +
                ", language='" + language + '\'' +
                ", city='" + city + '\'' +
                ", province='" + province + '\'' +
                ", country='" + country + '\'' +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", score=" + score +
                ", dictionary=" + dictionary +
                ", isPk=" + isPk +
                '}';
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Integer getDictionary() {
        return dictionary;
    }

    public void setDictionary(Integer dictionary) {
        this.dictionary = dictionary;
    }

    public boolean isPk() {
        return isPk;
    }

    public void setPk(boolean pk) {
        isPk = pk;
    }
}
